package com.scnlf.scnlf.portal.core.common.redis;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties("redis")
public class RedisProperties {

  /**
   * "Cluster" or "Single"
   */
  String mode;

  /**
   * cluster: redis://1.1.1.1;redis://1.1.1.2
   * <p>
   * single: redis://1.1.1.1
   */
  String url;
  String pwd;
  String db;
  String masterName;

}
